package com.wanczy.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.wanczy.mapper.CartMapper;
import com.wanczy.pojo.Cart;
import com.wanczy.pojo.Shop;
import com.wanczy.pojo.ShowCartGoods;
import com.wanczy.pojo.User;
import com.wanczy.service.CartService;

@Service
public class CartServiceImpl implements CartService{
	
	
    @Autowired
    private CartMapper cartMapper;
	
	@Override
	public List<ShowCartGoods> getMyCart(Integer userId) {
		List<ShowCartGoods> list = cartMapper.getMyCart(userId);
		
		return list;
	
	}

	@Override
	public List<Shop> getMyCartShop(Integer userId) {
		List<Shop> list1 = cartMapper.getMyCartShop(userId);
		return list1;
	}

	@Override
	public int getDelCart(Integer CartId) {
		int del = cartMapper.getDelCart(CartId);
		return del;
	}

	
	

}
